<?php

class UserGroupController extends AppController {

	function edit($user_group_id = null) {
	
		if ( empty($this->request->data) ) {
			//echo $user_id;
			$this->request->data = $this->UserGroup->find('all',
				array(
    				'conditions' => array('UserGroup.user_id' => $user_id)
    				));
		}	
		
		$user_group = ClassRegistry::init('Feature')->find('all', array());

		$this->set('user_group', $user_group);

	}
}

?>